package com.dragon.pear.models.params.update;

import java.sql.Timestamp;

/**
 * @author Chris Chan
 * Create on 2025-09-30 22:44
 * Use for: 购物车 数据更新参数
 * Explain:
 * 
 */
public class TradeGoodsCartUpdateParam {
    // ID
    private long id;
    // 用户账号
    private long accountCode;
    // 商品编码
    private long code;
    // 添加到购物车时间
    private long time;
    // 商品状态 0-正常, 1-已购买, 2-删除
    private int goodsStatus;

    // 无参构造方法
    public TradeGoodsCartUpdateParam() {
    }

    // 全参数构造方法
    public TradeGoodsCartUpdateParam(long id, long accountCode, long code, long time, int goodsStatus) {
        this.id = id;
        this.accountCode = accountCode;
        this.code = code;
        this.time = time;
        this.goodsStatus = goodsStatus;
    }

    // 全参数create生成器
    public static TradeGoodsCartUpdateParam create(long id, long accountCode, long code, long time, int goodsStatus) {
        return new TradeGoodsCartUpdateParam(id, accountCode, code, time, goodsStatus);
    }

    // 全参数of生成器
    public static TradeGoodsCartUpdateParam of(long id, long accountCode, long code, long time, int goodsStatus) {
        return new TradeGoodsCartUpdateParam(id, accountCode, code, time, goodsStatus);
    }
    // region Getter和Setter方法
    public long getId() {
        return id;
    }

    public TradeGoodsCartUpdateParam setId(long id) {
        this.id = id;
        return this;
    }

    public long getAccountCode() {
        return accountCode;
    }

    public TradeGoodsCartUpdateParam setAccountCode(long accountCode) {
        this.accountCode = accountCode;
        return this;
    }

    public long getCode() {
        return code;
    }

    public TradeGoodsCartUpdateParam setCode(long code) {
        this.code = code;
        return this;
    }

    public long getTime() {
        return time;
    }

    public TradeGoodsCartUpdateParam setTime(long time) {
        this.time = time;
        return this;
    }

    public int getGoodsStatus() {
        return goodsStatus;
    }

    public TradeGoodsCartUpdateParam setGoodsStatus(int goodsStatus) {
        this.goodsStatus = goodsStatus;
        return this;
    }

    // endregion Getter和Setter方法
}
